home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / text / mac / faqs.553 < prev    next >
Text File  |  1996-02-12  |  29KB  |  594 lines

  1. Frequently Asked Questions (FAQS);faqs.553
  2.  
  3.  
  4.  
  5. Also:
  6.     In addition, these commercial products (unsorted) are available in
  7. final or prerelease form [the * following the product name indicates that the
  8. product is known to allow the designer to specify for each widget whether a
  9. particular resource is hard-coded or written to an application defaults file,
  10. for at least one form of output]. Some are much more than user-interface tools;
  11. some are full user interface management systems:
  12.  
  13. Product Name        Look/Feel    Code Output        Vendor            
  14. HP Interface        Motif 1.1    C(Xm)            HP/Visual Edge
  15.  Architect/ UIMX    
  16. OPEN LOOK Express    OPEN LOOK    C(Xol+ helper lib)    AT&T/Visual Edge
  17. UIMX 2.0 *        Motif 1.1    C(Xm + helper code)    Visual Edge
  18.                                 514-332-6430
  19.                                 & distributors
  20. VUIT 2.0        Motif 1.1    C/UIL[r/w]        DEC
  21.                                 (1-800-DIGITAL)    
  22. X-Designer 1.1 *    Motif 1.1    C(Xm); C/UIL        Imperial
  23.                                 Software    
  24.                                 Technology, Ltd
  25.                                 (+44 734 587055)
  26.                                 sales@ist.co.uk
  27. XFaceMaker2 (XFM2) *     Motif 1.0    C;C/script (C-like procedural
  28.                     language);C/UIL
  29.                                  NSL
  30.                             (33 1 43 36 77 50)
  31.                             requests@nsl.fr
  32. Builder Xcessory 2.0 *    Motif 1.1    C(Xm); C/UIL[r/w]    ICS
  33.                                 (617-621-0060)
  34.                                 info@ics.com
  35. XBUILD 1.1 *        Motif 1.0    C(Xm); C/UIL         Nixdorf    
  36.                                 (617-864-0066)
  37.                             xbuild@nixdorf.com
  38. iXBUILD            Motif 1.1    C(Xm); C/UIL        iXOS Software
  39.                                 karl@ixos.uucp
  40.                                 089/461005-69
  41. TeleUSE 2.1 *        Motif 1.1.5    C(Xm); C/UIL[r/w]
  42.                                 Telesoft
  43.                                 (619-457-2700)
  44.                             gui_info@telesoft.com
  45. ezX 3.2            Motif 1.1    C(Xm +helper lib);C/UIL;Ada
  46.                                 Sunrise
  47.                                 (401-847-7868)
  48.                                 info@sunrise.com
  49. Snapix            Motif        C/Xm            ADNT
  50.                                 +33 1 3956 5333
  51. OpenWindows Developers    OPEN LOOK     GIL [-> C/XView]    Sun
  52. Guide 3.0                GIL [-> C++/XView]
  53.                     GIL [-> C/OLIT]
  54.                     GIL [-> C/PostScript for TNT]
  55. ExoCode/SXM        Motif        C(Xm)            Expert Object
  56. ExoCode/Plus        OPEN LOOK    XView            708-676-5555
  57. TAE+            Xw;Motif    C(Xw,Xm); C/TCL (TAE Control Language,
  58.                     like UIL[needs helper library]);
  59.                     VAX Fortran; Ada    
  60.                                 Nasa Goddard
  61.                                 (301) 286-6034
  62. MOB, XSculptor            Motif; OpenLook    C/Xm,UIL; C/Xol        Kovi
  63.                                 408-982-3840
  64. PSM            PM, MSW 3.0,    C/UIL            Lancorp
  65.             Motif 1.1.2,Mac                Pty Ltd.
  66.                                 +61 3 629 4833
  67.                                 Fax:  629 1296
  68.                                 (Australia)
  69. MOTIFATION        Motif 1.0|1.1.2    C(Xm)            AKA EDV
  70.                             +49 (0) 234/33397-0
  71.                             +49 (0) 234/33397-40 fax
  72. UIB            Open Look/Motif    C++(OI)            ParcPlace
  73.                                 +1 303-678-4626
  74.                                 
  75. Look for magazine reviews for more complete comparisons of meta-file formats,
  76. documentation, real ease-of-use, etc; Unix World and Unix Review often carry
  77. articles.
  78.  
  79.     In addition, Neuron Data (1 415 321-4488) makes Open Interface, a
  80. window-system-independent object toolkit which supports interfaces which are
  81. or resemble (supersets of) Mac, Windows, and Motif and Open Look; the package
  82. includes an interface builder.
  83.  
  84.        In addition, the GRAMMI builder supports the development of Ada/X
  85. applications using its own set of objects which are planned to have a Motif
  86. look.  GRAMMI is written in Ada and generates Ada specs and stub bodies.
  87. (1-800-GRAMMI-1).
  88.  
  89.     In addition, these non-WYSIWYG but related products may help for goals
  90. of rapid prototyping of the application interface:
  91.  
  92.     WCL: the Widget Creation Library. Basically describes the widget
  93. hierarchy and actions in a resources file; available from fine archive servers
  94. everywhere, including devvax.jpl.nasa.gov (128.149.1.143) in pub/. Wcl provides
  95. a very thin layer over Xt without any internal tweaking. 2.03 became available
  96. 11/92; version 2.04 will be available before 12/16/92.
  97.     WINTERP: an Xlisp-based Motif toolkit allows for interpretive
  98. programming. The copy on the R4 tape is outdated; get a copy off export or
  99. email to winterp-source%hplnpm@hplabs.hp.com.
  100.     The Serpent UIMS permits the building of user-interfaces without
  101. specific knowledge of coding but with an understanding of attributes being set
  102. on a particular [Motif] widget.  Beta Release 1.2 is available from
  103. ftp.sei.cmu.edu (128.237.1.13) and can be found in /pub/serpent.  Serpent is
  104. also available on export.lcs.mit.edu (18.24.0.11) in /contrib/serpent. Email
  105. questions can go to serpent@sei.cmu.edu. A commercial version of Serpent is
  106. available as "Agora" from ASET, 221 Woodhaven Drive, Pittsburgh, PA 15228.
  107.     Garnet is a Common Lisp-based GUI toolkit. Information is available
  108. from garnet@cs.cmu.edu.
  109.     MetaCard is a hypertext/Rapid Application Development environment
  110. similar to Apple/Claris Corporation's HyperCard (info@metacard.com). MetaCard
  111. is available via anonymous FTP from ftp.metacard.com, csn.org, or
  112. 128.138.213.21.
  113.  
  114. ----------------------------------------------------------------------
  115. Subject:  87)  Where can I find X tools callable from shell scripts?
  116. I want to have a shell script pop up menus and yes/no dialog boxes if the user
  117. is running X.
  118.  
  119.     Several tools in the R3 contrib/ area were developed to satisfy these
  120. needs: yorn pops up a yes/no box, xmessage displays a string, etc. There are
  121. several versions of these tools; few, if any, have made it to the R4 contrib/
  122. area, though they may still be available on various archive sites.
  123.     In addition, Richard Hesketh (rlh2@ukc.ac.uk) has posted the xmenu
  124. package to comp.sources.x ("v08i008: xmenu") for 1-of-n choices.  [7/90]
  125.     Two versions of XPrompt have been posted to comp.sources.x, the latter
  126. being an unauthorized rewrite. [R. Forsman (thoth@reef.cis.ufl.edu), 1/91]
  127.     There is a version of XMenu available from comp.sources.x; it is
  128. being worked on and will likely be re-released.
  129.     xp-1.1.tar.Z, xpick-1.0.tar.Z and xzap-1.0.tar.Z on export's contrib/
  130. are tools by Gerry.Tomlinson@newcastle.ac.UK which act as X versions of the
  131. simple display and choice-making tools in K&P. [4/92]
  132.  
  133. ----------------------------------------------------------------------
  134. Subject:  88)  Where can I get an X-based debugger?
  135.  
  136.     xdbx, an X interface to the dbx debugger, is available via ftp from
  137. export. The current [1/91] version is 2.1 patchlevel 2.
  138.     An X interface to gdb called xxgdb is more like xdbx 2.1.2. It is part
  139. of comp.sources.x volume 11 [2/91].
  140.     mxgdb is a Motif interface to gdb by Jim Tsillas
  141. (jtsillas@bubba.ma30.bull.com); version 1.1.3 was posted to alt.sources 2/92.
  142. Previous versions are on export.
  143.     UPS is a source-level debugger which runs under the X11 and SunView
  144. window systems on Sun and DEC platforms. It is available from export
  145. (18.24.0.11) as contrib/ups-2.45.tar.Z and unix.hensa.ac.uk (129.12.21.7) in
  146. /pub/misc/unix/ups (or try mail to archive@unix.hensa.ac.uk). [10/92]
  147.  
  148. Also:
  149.     MIPS produces a highly-customizable (WCL-based) Visual Debugger.
  150.     You should be able to use Sun's dbxtool with its X11/NeWS server.
  151.     The CodeCenter (617-498-3000) source-level debugger, available on most
  152. major platforms, includes an X-based interface.
  153.     AT&T offers the eXamine Graphical Interface, an X11 interface to dbx
  154. and C++ dbx for Sun3 and Sun4 and sdb and sdb++ for 386 and 3B2 platforms. Call
  155. 1-508-960-1997 or contact examine@mvuxi.att.com for more information.
  156.         Solbourne (+1 303-678-4626) offers PDB, its X-based debugger for C, C++
  157. and Fortran.  PDB uses the OI toolkit and runs in either Open Look or Motif
  158. mode.
  159.     SCO (info@sco.com) offers dbXtra as part of several development
  160. systems.
  161.  
  162. ----------------------------------------------------------------------
  163. Subject:  89)  How can I "tee" an X program identically to several displays?
  164.  
  165.     There are several protocol multiplexer tools which provide for the
  166. simultaneous display of X clients on any number of machines.
  167.     XMX (an X Protocol Multiplexor) is available from wilma.cs.brown.edu
  168. (128.148.31.66) as pub/xmx.tar.Z It works independently of the server and does
  169. not affect the application being shared; it was developed for use in the
  170. electronic classroom.
  171.     XTV is a conference program which can be used to duplicate the
  172. "chalkboard" on several displays. Release 1 is available on the X11R5 contrib
  173. tapes; a more recent version is on ftp.cs.odu.edu as pub/wahab/XTV.r2.tar.Z.
  174.     SHX from Michael Altenhofen of Digital Equipment GmbH CEC Karlsruhe
  175. also does this; it is a "WYSIWIS" (What You See Is What I See) package in the
  176. context of a computer-based learning/training tool to provide online help from
  177. remote tutors but is also useful for general window sharing. Information:
  178. shX@nestvx.enet.dec.com.  SHX can be found on export and
  179.         gatekeeper.dec.com:/pub/X11/contrib/shX.tar.Z,
  180.         crl.dec.com:/pub/X11/contrib/shX.tar.Z
  181. Modifications to SHX for color mapping and private color allocation by
  182. Mark J. Handley (M.Handley@cs.ucl.ac.uk) are on cs.ucl.ac.uk in
  183. car/shX.car.tar.Z.
  184.     XTrap is implemented as a server/library extension and can be used
  185. to record and then replay an x session. It is available as:
  186.         gatekeeper.dec.com      pub/X11/contrib/XTrap_v31.tar.Z
  187.         export.lcs.mit.edu      contrib/XTrap_v31.tar.Z
  188.     wscrawl can be used as a "multi-person paint program". It's available
  189. on sax.stanford.edu as wscrawl.shar.Z.
  190.     Shdr implements a simple shared whiteboard, without a chalk-passing
  191. mechanism. It's available on parcftp.xerox.com as pub/europarc/shdr.tar.Z.
  192.  
  193. Also of use:
  194.         Hewlett-Packard Co. has a commercial product, "HP SharedX" which works
  195. under HP-UX currently on their 300, 400, and 700 series workstations and their
  196. HP 700/RX X Stations.  Machines receiving shared windows can be any X server.
  197. HP SharedX consists of a server extensions and a Motif based user interface
  198. process.  Contact your local HP sales rep. for more information.
  199.     IBM offers a commercial product.
  200.     Sun offers multi-user confering software called ShowMe.
  201.     InSoft (Mechanicsburg, PA, USA) offers multi-user confering software
  202. called Communique.
  203.  
  204. [Thanks in part to scott@spectra.com (Tim Scott), 5/91, and to Peter Cigehn
  205. (peter@lulea.trab.se), 8/92 ]
  206.  
  207. ----------------------------------------------------------------------
  208. Subject:  90)  TOPIC: BUILDING THE X DISTRIBUTION [topic needs updating to R5]
  209. ----------------------------------------------------------------------
  210. Subject:  91)  What's a good source of information on configuring the X build?
  211.  
  212.     This FAQ includes information on a number of "gotchas" that can bite
  213. you on particular system. However, the best source of general information on
  214. building the X11 release is found in the Release Notes. The file is bundled
  215. separately from the rest of the release, so if it's become separated from your
  216. sources you can FTP another copy separately: the file RELNOTES.[ms,PS,TXT] at
  217. the top of the distribution. The file RELNOTES is also available from the
  218. xstuff mail server.
  219.     In addition, O'Reilly & Associates's Volume 8 on X Administration
  220. includes information on configuring and building X.
  221.  
  222. ----------------------------------------------------------------------
  223. Subject:  92)  Why doesn't my Sun with a cg6 work with R5?
  224.  
  225.     Apparently gcc is the problem; it seems to produce fine code for all
  226. Sun displays except for the cgsix. The new sunGX.o distributed with fix-07
  227. may fix the problem (note: not known to work on Solaris).
  228.  
  229. ----------------------------------------------------------------------
  230. Subject:  93)  Why doesn't my Sun with SunOS 4.1 know about _dlsym, etc.?
  231.  
  232.     If you get errors with _dlsym _dlopen _dlclose undefined, link with
  233. libdl.a.  Add "-ldl" to your and eventually your site.def.  You may want to
  234. surround it with "-Bstatic -ldl -Bdynamic" if you add it to the EXTRA_LIBRARIES
  235. variable, since "syslibs" get added after EXTRA_LIBRARIES on the eventual
  236. compilation command; otherwise you may not have a shared libdl.  (Or compile
  237. the stubs shared.)
  238.  
  239. [thanks to Joe Backo (joe.backo@East.Sun.COM), 12/91]
  240.  
  241. ----------------------------------------------------------------------
  242. Subject:  94)  What is this strange problem building X clients on SunOS 4.1.2?
  243.  
  244.     In SunOS 4.1.2 Sun fixed a shared-library bug in ld which conflicts
  245. with the way X11R4 builds the shared Xmu library, causing these symbols to be
  246. undefined when building some X11 clients:
  247.     _get_wmShellWidgetClass
  248.     _get_applicationShellWidgetClass
  249. Compiling "-Bstatic -lXmu -Bdynamic" appears to work.
  250.  
  251. To solve the problem if you are using OpenWindows 3.0 (X11R4-based Xt), please
  252. contact your local Sun office and request the following patches:
  253.  
  254. Patch i.d.      Description
  255. 100512-02       4.1.x OpenWindows 3.0 libXt Jumbo patch
  256. 100573-03       4.1.x OpenWindows 3.0 undefined symbols when using
  257.                         shared libXmu
  258.  
  259. [Greg Earle, earle@Sun.COM; 7/92]
  260.  
  261. ----------------------------------------------------------------------
  262. Subject:  95)  Why can't gcc compile X11R4 on my SPARC?
  263. I used gcc to compile the whole distribution, but I get several segmentation
  264. faults when running X.
  265.  
  266.     Note first that gcc on RISC machines does not necessarily result in
  267. any performance increase; it certainly is not as noticeable as it is on the
  268. 680x0 or VAX platforms.
  269.  
  270.     Here is the problem: gcc and cc use incompatible methods of passing
  271. structures as arguments and returning them as function values, so when
  272. gcc-compiled parts of X are linked with Sun-supplied functions that pass or
  273. return structs, run-time errors occur.  Affected programs include rgb and
  274. the server.
  275.  
  276.     This is from the GCC manual:
  277.  
  278.     On the Sparc, GNU CC uses an incompatible calling convention for
  279.     structures.  It passes them by including their contents in the argument
  280.     list, whereas the standard compiler passes them effectively by
  281.     reference.
  282.  
  283.     This really ought to be fixed, but such calling conventions are not yet
  284.     supported in GNU CC, so it isn't straightforward to fix it.
  285.  
  286.     The convention for structure returning is also incompatible, and
  287.     `-fpcc-struct-return' does not help.
  288.  
  289. You can duck the problem either by using cc throughout or by using it for just
  290. the routines which cause incompatibilities; the problem cannot be solved with
  291. compilation flags.
  292.  
  293.     Files which need to be compiled using cc include:
  294.         server/os/4.2bsd/oscolor.c
  295.         rgb/rgb.c
  296.  
  297.     In addition, several of the "inet_" functions use structs as args or
  298. return values:
  299.         clients/xhost/xhost.c
  300.         clients/xauth/gethost.c.
  301. Calls to inet_addr in /lib/CLX/socket.c and lib/X/XConnDis.c are possibly
  302. harmless as they don't involve structs.
  303.  
  304. [collected by bashford@scripps.edu (Don Bashford); 8/90]
  305.  
  306. ----------------------------------------------------------------------
  307. Subject:  96)  What are these I/O errors running X built with gcc?
  308. When I try to run xinit or the Xsun server I get the error
  309.     "Getting interface configuration: Operation not supported on socket.
  310.     Fatal server bug! no screens found."
  311.  
  312.     Running the gcc fixincludes script apparently didn't work. You can do
  313. this simple test:
  314.  
  315.     #include <sys/ioctl.h>
  316.     SIOCGIFCONF
  317.  
  318. Run that through cc -E and gcc -E.  The last line of output is the piece of
  319. interest; it should be identical (modulo irrelevant differences like
  320. whitespace).  If the gcc version has 'x' where the cc version has 'i', your
  321. fixincludes run didn't work for some reason or other; go back to your gcc
  322. sources and run `fixincludes`; then rebuild the X distribution. If they are
  323. identical, try running a make clean in mit/server and rebuilding, just to make
  324. sure everything gets compiled with the proper include files.
  325.  
  326. [courtesy der Mouse, mouse@LARRY.MCRCIM.MCGILL.EDU; 9/90]
  327.  
  328. ----------------------------------------------------------------------
  329. Subject:  97)  What are these problems compiling X11R4 on the older Sun3?
  330. In mit/server/ddx/sun/sunCG3C.c, we have found "missing" defines for
  331. CG3AC_MONOLEN, CG3BC_MONOLEN, CG3AC_ENBLEN, CG3BC_ENBLEN. What should these be?
  332.  
  333.     The R4 Errata list distributed after X11R4 mentions that you can add
  334. these lines to the file on older SunOS versions (e.g. 3.5) to compile:
  335.         #define CG3AC_MONOLEN (128*1024)
  336.         #define CG3AC_ENBLEN  CG3AC_MONOLEN
  337.         #define CG3BC_MONOLEN CG3AC_MONOLEN
  338.         #define CG3BC_ENBLEN  CG3AC_MONOLEN
  339.  
  340.     However, the Sun3 should not actually ever have the CG3 device, and so
  341. references to it can be removed from mit/server/ddx/sun/sunInit.c and the
  342. Imakefile.  [11/90]
  343.  
  344. ----------------------------------------------------------------------
  345. Subject:  98)  What are these problems compiling the X server on SunOS 4.1.1?
  346. The file <sundev/cg6reg.h> isn't being found.
  347.  
  348.     Sun omitted <sundev/cg6reg.h> from SunOS 4.1.1. Remove the #include
  349. from sunCG6C.c and replace it with the line
  350.     #define CG6_VADDR_COLOR   0x70016000
  351. The file has changed from earlier versions of SunOS and should not be copied
  352. from another distribution.
  353.  
  354. ----------------------------------------------------------------------
  355. Subject:  99)  What are these problems using R4 shared libraries on SunOS 4?
  356. All of the executables that I try to run have the following results:
  357.     ld.so: libXmu.so.4: not found
  358. or even:
  359.     ld.so: call to undefined procedure __GetHostname from 0xf776a96c
  360.  
  361.     If you are building with shared libraries on a Sun, remember that you
  362. need to run "ldconfig" as root after installing the shared libraries (if you've
  363. installed X on a file-server, run it on the server's clients, too).  While
  364. building and installing the distribution, you need to be careful to avoid
  365. linking against any existing X shared libraries you might have (e.g. those
  366. distributed with OpenWindows).  You should make sure you do not have
  367. LD_LIBRARY_PATH set in your environment during the build or the installation.
  368. If you are going to keep xterm and xload as setuid programs, please note that
  369. the shared libraries must be installed in /usr/lib, /usr/local/lib, or
  370. /usr/5lib for these programs to work (or else those programs must be linked
  371. statically). [courtesy MIT X Consortium]
  372.     Note also that the program mkfontdir is run as part of the build; it
  373. attempts, however, to use the shared libraries before they have been installed.
  374. You can avoid the errors by building mkfontdir statically (pass -Bstatic to
  375. most C compilers).
  376.  
  377. ----------------------------------------------------------------------
  378. Subject: 100)  Can OLIT programs run with R5 Xt? (_XtQString undefined)
  379.  
  380. This is a bug in the OLIT.  _XtQString was an external symbol that existed in
  381. X11R4 (upon which OW 3.0's libXt is based).  It wasn't documented and was
  382. removed in X11R5 (MIT's guarantee of upward compatibility between the R4 and R5
  383. libraries only applied to the documented interface).
  384.  
  385. A workaround is to temporarily set your LD_LIBRARY_PATH to point to the X11R5
  386. Xt library that you linked the program against.
  387.  
  388. [10/92; from Barry Margolin (barmar@think.com)
  389.  
  390. ----------------------------------------------------------------------
  391. Subject: 101)  How do I get around the SunOS 4.1 security hole?
  392.  
  393.     There is a security problem with certain R4 clients (xterm and xload)
  394. running under SunOS 4.1 that have been installed setuid root and are using
  395. shared libraries; to avoid the problem, do one of these:
  396.     1) make the program non-setuid. You should consult your system
  397. administrator concerning protection of resources (e.g. ptys and /dev/kmem) used
  398. by these programs, to make sure that you do not create additional security
  399. problems at your site.
  400.     2) relink the programs statically (using -Bstatic).
  401.     3) install the libraries before linking and link with absolute paths
  402. to the libraries.
  403.  
  404. [from rws@expo.lcs.mit.edu (Bob Scheifler), 12/90]
  405.  
  406. The R5 version of xterm does this automatically by rebuilding xterm against the
  407. newly-installed libraries when xterm is being installed; this prevents an suid
  408. program from being built with libraries specified relatively. Note that this
  409. may cause an inconvenience when doing the installation from NFS-mounted disks.
  410. Xload has been rewritten to avoid the problem.
  411.  
  412. ----------------------------------------------------------------------
  413. Subject: 102)  TOPIC: BUILDING X PROGRAMS
  414. ----------------------------------------------------------------------
  415. Subject: 103)  What is Imake?
  416.  
  417.     Imake is not a replacement for the make program; instead, it is a
  418. makefile-generator that takes advantages of the include-file and macro-
  419. processing capabilities of the C preprocessor cpp to generate makefiles
  420. suitable for building software on a particular system. Although it is not
  421. specific to X, the X release uses it to help solve a number of the
  422. configuration issues that arise in making such a large system widely portable.
  423.     Imake has a fairly steep learning curve, in part because the process by
  424. which the system-specific configuration files, system-independent configuration
  425. files, and individual Imakefiles are melded to produce a Makefile is not
  426. obvious.
  427.     There have been several different versions of imake; the R3, R4, and
  428. R5 versions are different.
  429.  
  430.     You can obtain information on imake from these sources:
  431.     - the R4 and R5 release notes and imake man page include information on
  432. using Imake to build X
  433.     - the R4 and R5 file mit/config/README also contains useful information
  434.     - on the R4 tapes, contrib/doc/imake/imake.tex is Mark Moraes' R3/R4
  435. guide to imake.
  436.     - the R5 mit/doc/config/usenixws/paper.ms contains a paper by Jim
  437. Fulton on an early version of Imake
  438.     - Paul Dubois (dubois@primate.wisc.edu) has written a useful
  439. explanation of how Imake works and how to use it in configuring X for non-
  440. supported systems; the document is available from ftp.primate.wisc.edu
  441. in the directory ~ftp/pub/imake-stuff; look for config-X11R4.ms (troff) and
  442. config-X11R4.ps (PostScript). Some supplemental appendices are nearby.
  443. [7/91: document version is now 1.06]
  444.     - see "System Administration - Imake: Friend of Foe?" by Dinah McNutt
  445. in the November 1991 issue of SunExpert.
  446.     - German readers should expect in June 1992 an article "Das Meta-Make
  447. / I make, you make / Schwerelos" by Rainer Klute in "iX
  448. Multiuser-Multitasking-Magazin", directed at application programmers needing to
  449. write Imakefiles. An English-language derivative of this article is in The
  450. X Journal, issue 2:1.
  451.     - The O'Reilly X Resource issue #2 contains Paul Davey's article on
  452. demystifying Imake.
  453.     - Alain Brossard's working document full of tips on Imake is in
  454. sasun1.epfl.ch:pub/imakefile.1.Z.
  455.  
  456. [1/91;12/91;5/92;8/92]
  457.  
  458. ----------------------------------------------------------------------
  459. Subject: 104)  Where can I get imake?
  460.  
  461.     Versions are distributed with the R4 and R5 releases. An earlier
  462. version is distributed with the X11R3 release; some third-party toolkits
  463. redistribute versions of imake along with their own implementations of the
  464. template and configuration files. There are no real standards for such
  465. configuration files, although most *current* contributed software expects the
  466. templates distributed with X11R5.
  467.     export contains the R5 distribution unpacked, so you can pick up imake
  468. without picking up the entire distribution.
  469.     A stand-alone version of Imake, but one stemming from X11R5, is in
  470. ftp.germany.eu.net:pub/X11/misc/imake/imake-pure.tar.Z (192.76.144.75).
  471.  
  472. ----------------------------------------------------------------------
  473. Subject: 105)  I have a program with an Imakefile but no Makefile. What to do?
  474.  
  475.     If you have R4 or R5 installed on your system, run "xmkmf". This is a
  476. script which runs imake for you with the correct arguments. The output is a
  477. Makefile configured for your system and based on the Imakefile. Then run make,
  478. which will use that new Makefile to compile the program.
  479.  
  480. ----------------------------------------------------------------------
  481. Subject: 106)  Why can't I link to the Xlib shape routines?
  482. When I try to compile certain programs, I get the following link error:
  483.     Undefined:
  484.     _XShapeQueryExtension
  485.     _XShapeCombineMask
  486.  
  487.     These routines are actually part of the Shape Extension to X (SHAPE)
  488. which was introduced in the MIT X11R4 distribution and allows non-rectangular
  489. windows.  Like the other sample server extensions, the shape extension will
  490. only run on a server which supports it.  Pre-X11R4 servers, as well as many
  491. vendor-supplied servers, do not support the shape extension, in which case
  492. they will display rectangular windows anyway.
  493.  
  494.     In order to use the shape extension, you must link to the library
  495. libXext.a.  In the X11R4 distribution, this library and the associated includes
  496. will be in the mit/extensions directory.  If you do not have these files, do
  497. not despair:  many freeware programs which use the shape extension can also be
  498. compiled without it by removing the -DSHAPE define from the Makefile; you can
  499. probably do this and compile successfully against your older vendor-supplied X
  500. libraries.
  501.  
  502. [from John B. Melby, melby%yk.fujitsu.co.jp@uunet.uu.net, 3/91]
  503.  
  504. ----------------------------------------------------------------------
  505.  
  506. David B. Lewis                     faq%craft@uunet.uu.net
  507.  
  508.         "Just the FAQs, ma'am." -- Joe Friday
  509. --
  510. David B. Lewis        Temporarily at but not speaking for Visual, Inc.
  511. day: dbl@visual.com    evening: david%craft@uunet.uu.net
  512. Xref: bloom-picayune.mit.edu comp.windows.x:61857 news.answers:4490
  513. Newsgroups: comp.windows.x,news.answers
  514. Path: bloom-picayune.mit.edu!enterpoop.mit.edu!eff!sol.ctr.columbia.edu!caen!uunet!visual!dbl
  515. From: dbl@visual.com (David B. Lewis)
  516. Subject: comp.windows.x Frequently Asked Questions (FAQ) 4/4
  517. Message-ID: <1992Dec8.145405.7635@visual.com>
  518. Followup-To: poster
  519. Summary: useful information about the X Window System
  520. Reply-To: faq%craft@uunet.uu.net (X FAQ maintenance address)
  521. Organization: Visual
  522. Date: Tue, 8 Dec 92 14:54:05 GMT
  523. Approved: news-answers-request@MIT.Edu
  524. Expires: Sun, 03 Jan 1993 00:00:00 GMT
  525. Lines: 1043
  526.  
  527. Archive-name: x-faq/part4
  528. Last-modified: 1992/12/07
  529.  
  530. ----------------------------------------------------------------------
  531. Subject: 107)  What are these problems with "_XtInherit not found" on the Sun?
  532. When I run a X program that I wrote on a SunOS 4.0.3 or 4.1 machine I get the
  533. error "ld.so: symbol not found _XtInherit".
  534.  
  535.     What you are seeing is a side-effect of a kludge in the R4 libXt.a to
  536. get Sun shared libraries working.  Apparently, you can't share a function that
  537. is both called and compared, as _XtInherit is. This was handled by putting
  538. _XtInherit in the same file as a function that is always used, thereby
  539. guaranteeing that it would be loaded -- that is, in Initialize.c, where
  540. XtToolkitInitialize() and XtInitialize() reside. These routines would normally
  541. be called.
  542.  
  543.     You are probably seeing this error because your program is not a normal
  544. Xt-based program and does not call XtToolkitInitialize() anywhere.
  545.     1) it may be a program that uses Xt functions but never opens a
  546. connection to the X server.  [OSF/Motif's 1.1.0 UIL had this problem; it called
  547. XtMalloc() and other Xt functions.] The solution is to add the call to your
  548. program; the function does not have to be executed, just linked in.
  549.     2) alternatively, your program doesn't need any Xt functions and is
  550. correct in not calling XtToolkitInitialize() -- it may be an Xlib or XView
  551. program. In this case, you can remove -lXt from your link command.
  552.  
  553.     It should not be necessary to link the shared libraries statically,
  554. although this will certainly solve the problem.
  555.     
  556. [from Jordan Hayes (now jordan@MooreNet.COM) and Danny Backx (db@sunbim.be);
  557. 11/90]
  558.  
  559. ----------------------------------------------------------------------
  560. Subject: 108)  Why can't I compile my R3 Xaw contrib programs under the new X?
  561. I have a program that worked well under X11R3. When I try to link it under
  562. the current version of X, I get this message:
  563.     Undefined:
  564.     _XtScrollBarSetThumb
  565.     _XtTextSetInsertionPoint
  566.     _XtTextReplace
  567.  
  568.     There were several name changes in the Athena widget set (in addition
  569. to the header files moving into <X11/Xaw/>); these are mentioned in the R4
  570. release notes. In this case, these functions are not really Xt functions but
  571. are part of the Xaw text widget and so have been renamed from Xt* to Xaw*.
  572. [10/90]
  573.  
  574. ----------------------------------------------------------------------
  575. Subject: 109)  TOPIC: PROGRAMMING PROBLEMS AND PUZZLES
  576. ----------------------------------------------------------------------
  577. Subject: 110)  Why doesn't my program get the keystrokes I select for (sic)?
  578.  
  579.     The window manager controls how the input focus is transferred from one
  580. window to another.  In order to get keystrokes, your program must ask the
  581. window manager for the input focus.  To do this, you must set up what are
  582. called "hints" for the window manager.  If your applications is Xlib-based, you
  583. can use something like the following:
  584.  
  585.         XWMHints wmhints;
  586.         ...
  587.         wmhints.flags = InputHint;
  588.         wmhints.input = True;
  589.         XSetWMHints(dpy, window, &wmhints)
  590.  
  591. If your application is based on the Xt Intrinsics, you can set the XtNinput
  592. resource to be True (as you probably want to in any case); if you don't have
  593. source, you can start up the application with the resource '*input:True'.
  594.